/**
 * Copyright(C): CETC-32
 * @Description: 用户权限
 * @author: youqing
 * @version: 1.0
 * @date: 2020/9/11 10:55
 * 更改描述：
 */
package com.cetc32.dh.service;

import com.cetc32.dh.common.response.PageDataResult;
import com.cetc32.dh.dto.PermissionDTO;
import com.cetc32.dh.entity.BaseAdminPermission;
import com.cetc32.dh.entity.BaseAdminUser;
import java.util.List;
import java.util.Map;

/**
 * @Title: AdminPermissionService
 * @Description:
 * @author: youqing
 * @version: 1.0
 * @date: 2020/11/30 9:44
 */
public interface AdminPermissionService {

    Map<String,Object> addPermission(BaseAdminPermission permission);

    Map<String,Object> updatePermission(BaseAdminPermission permission);

    PageDataResult getPermissionList(Integer pageNum, Integer pageSize);

    List<PermissionDTO> parentPermissionList();

    Map<String, Object> del(long id);

    BaseAdminPermission getById(Object id);

    Map<String, Object> getUserPerms(BaseAdminUser user);

}
